import request from '@/utils/request'


// 查询售后列表
export function afterSaleList(pageSize,pageNum) {
    const data = {
        pageSize,
        pageNum,
    }
    return request({
      url: '/goods/afterSale/list',
      method: 'get',
      params: data
    })
  }

// 新增售后
export function afterSaleAdd(data) {
    return request({
      url: '/goods/afterSale',
      method: 'post',
      params:data
    })
  }
  // 删除售后
export function afterSaleDel(id) {
    return request({
      url: '/goods/afterSale/'+id,
      method: 'DELETE',
    })
  }
// 修改售后
export function afterSaleUpdate(data) {
    return request({
        url: '/goods/afterSale',
        method: 'put',
        params:data
    })
    }
// 查询售后详情
export function afterSale(id) {
    return request({
      url: '/goods/afterSale/'+id,
      method: 'get',
    })
  }
// 搜索售后
export function afterSaleInquire(data) {

    return request({
        url: '/goods/afterSale/list',
        method: 'get',
        params: data
    })
}
